@echo off
poetry install --no-root

del /s /q /f .\dist
del /s /q /f .\build
del /q /f t-player.spec

poetry run pyinstaller --clean -y -F t-player.py -p Player.py -p EventHandle.py -p download.py -p log.py

copy logging.yml .\dist\
copy data.json .\dist\
poetry run pip freeze > requirements.txt